const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
  return sequelize.define('record_list', {
    channel_id: {
      type: DataTypes.STRING(5),
      allowNull: false,
      primaryKey: true,
      comment: "通道编号"
    },
    channel_name: {
      type: DataTypes.STRING(50),
      allowNull: false,
      comment: "通道名字"
    }
  }, {
    sequelize,
    tableName: 'record_list',
    timestamps: false,
    indexes: [
      {
        name: "PRIMARY",
        unique: true,
        using: "BTREE",
        fields: [
          { name: "channel_id" },
        ]
      },
    ]
  });
};
